package com.zhongli.devplatform.po.teacher;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author  WuXiCheng
 * @date  2020/7/23 10:12
 * @version 1.0
 */
@ApiModel(value="com-zhongli-devplatform-po-ReadOperation")
@Data
@TableName(value = "read_operation")
public class ReadOperationPO {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="主键")
    private Integer id;

    /**
     * 测试题名称
     */
    @TableField(value = "operation_name")
    @ApiModelProperty(value="测试题名称")
    private String operationName;

    /**
     * 开始时间
     */
    @TableField(value = "start_time")
    @ApiModelProperty(value="开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date startTime;

    /**
     * 结束时间
     */
    @TableField(value = "end_time")
    @ApiModelProperty(value="结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date endTime;

    /**
     * 状态
     */
    @TableField(value = "status")
    @ApiModelProperty(value="状态")
    private Boolean status;

    /**
     * 作业类型
     */
    @TableField(value = "operation_type")
    @ApiModelProperty(value="作业类型")
    private Integer operationType;

    /**
     * 作业照片
     */
    @TableField(value = "imges")
    @ApiModelProperty(value="作业照片")
    private String imges;

    /**
     * 作业说明
     */
    @TableField(value = "intro")
    @ApiModelProperty(value="作业说明")
    private String intro;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    /**
     * 创建人
     */
    @TableField(value = "create_user_id",fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建人")
    private Integer createUserId;

    @TableField(value = "update_time")
    @ApiModelProperty(value="")
    private Date updateTime;

    @TableField(value = "update_user_id")
    @ApiModelProperty(value="")
    private Integer updateUserId;

    /**
     * 临时状态 标注当前学生 是否提交作业
     */
    @TableField(exist = false)
    private Boolean commitStatus;

    /**
     * 临时状态 标注当前作业是否开始
     */
    @TableField(exist = false)
    private Integer isStart;

}
